import Vue from 'vue'
import App from './App.vue'
import router from "./router/guard";

/*********** 实例化公共组件 ****************/
import components from './components/index';

components(Vue);

/*********** 实例化公共方法  全局挂载 ****************/
import common from './common/index';

new common(Vue);

/*********** 实例化api处理  全局挂载 ****************/
import api from './service/api/index';

Vue.prototype.$api = api;

/*********** aixos请求 ****************/
import _axios from "./service/request/index";

Vue.prototype.$axios = _axios();
/*********** 配置文件 ****************/
import _config from './config/index';

Vue.prototype.$config = _config[process.env.NODE_ENV];

Vue.config.productionTip = false;

import i18n from "./lang";

import store from './store/index';

new Vue({
	router,
	i18n,
	store,
	render: h => h(App),
}).$mount('#app');
